body {
    min-height: 1024px;
    background-color: #F9FAFB;
}
.nav-item {
    position: relative;
}
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4F46E5;
}
.chart-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.input-icon {
    display: flex;
    align-items: center;
    padding: 0 12px;
    pointer-events: none;
}
input:focus {
    outline: none;
    border-color: #4F46E5;
}
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset;
}

/**
    视频播放器
 */
.videoModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.video-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 1280px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

video {
    width: 100%;
    height: auto;
    display: block;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.open-modal-btn {
    border: none;
    outline: none;
}


.loading-spinner {
    --border: 5px;
    --gap: 15px;
    --w: 200px;
    display: none;
}

section {
    width: var(--w);
    height: var(--w);
    position: relative;
}

.loader-item {
    --width: calc(var(--w) - var(--gap) * 2 * var(--i));
    width: var(--width);
    height: calc(var(--width) / 2);
    border: var(--border) solid var(--c);
    border-radius: 50% 50% 0 0/100% 100% 0 0;
    border-bottom: none;
    position: absolute;
    left: calc(50% - var(--width) / 2);
    top: calc(var(--gap) * var(--i));
    transform-origin: 50% 100%;
    animation: rotate 2s cubic-bezier(0.11, 0.85, 0.22, 1.3) infinite;
    animation-delay: calc(-60ms * var(--i));
    transition: all 0.5s;
}

section:hover .loader-item {
    filter: brightness(1.5);
    animation-play-state: paused;
}

@keyframes rotate {
    0%,
    25% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.camera-container {
    position: relative;
    width: 100%;
    padding-top: 30%;
    max-height: 500px;
    background-color: #000;
    overflow: hidden;
}

#cameraStream{
    object-fit: contain;
}

#videoElement {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capture-btn {
    width: 64px;
    height: 64px;
    transition: transform 0.2s;
}

.capture-btn:hover {
    transform: scale(1.1);
}

.camera-close-btn:hover {
    color: #EF4444;
}

.modal-content {
    animation: modalShow 0.3s ease-out;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/**
  用户模态框
 */
.user-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.user-modal-content {
  background: white;
  width: 500px;
  padding: 24px;
  border-radius: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin {
    animation: spin 20s linear infinite;
}
.star {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

#stars {
    pointer-events: none;
    z-index: 1;
}

.star.visible {
    opacity: 1;
}

/* 修改漂浮动画效果 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float {
    animation: float 2s ease-in-out infinite;
}

/**
user.index
 */
.movie-card:hover {
    transform: translateY(-4px);
    transition: all 0.3s ease;
}
.rating-stars {
    color: #FFD700;
}

/**
user.tags
 */
.tag-item {
    transition: all 0.3s ease;
    cursor: pointer;
}
.tag-item.selected {
    background-color: #3176FF;
    color: white;
}
.tag-item:hover:not(.selected) {
    background-color: #f3f4f6;
}
.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}